<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
import { dynamicRouting } from '@/router/index'

export default {
  name: 'app',
  components: {
  },
  created() { 
    // 防止页面刷新之后路由组件重新初始化导致路由丢失
    dynamicRouting()
  }
}
</script>

<style>
 #app {
   width: 100%;
   height: 100vh;
 }
</style>
